<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>



<isperp:grid url="sparepart/sparepartDiscard/old/listDetail"
	gridId="sparepartDiscardGrid" processKey="sparepartDiscardProcess"
	ondbClickRowEvent="sparepartDiscardGrid.edit(rowid);"
	cusDialogSize="big">
	<jsp:attribute name="toolbar">
	<isperp:treeMenu id="sparepartDiscardMenu"
			targetGridId="sparepartDiscardGrid">
		<isperp:async enable="true"
				url="sparepart/sparepartDiscard/processMenu"></isperp:async>
		<isperp:callback onClick="sparepartDiscardMenuTree_onNodeClick"
				onAsyncSuccess="sparepartDiscardMenuTree_onNodeClickFirst();">
		</isperp:callback>
	</isperp:treeMenu>
	<isperp:toolbar id="userToolbar">
		<isperp:button id="userCeate" icon="icon-plus" text="备件报废申请"
				cssClass="nui-mainbtn" onclick="sparepartDiscardGrid.create();"></isperp:button>
	</isperp:toolbar>
	</jsp:attribute>
	<jsp:attribute name="searchbar">
	<table class="search-table">
		<tbody>
			<tr>
				<td class="td1">编号：</td>
				<td class="td2"><input type="text" field="code" op="cn">
				</td>
				<td class="td1">描述：</td>
				<td class="td2"><input type="text" field="memo" op="cn">
				</td>
				<td class="td1">申请人：</td>
				<td class="td2"><input type="text" field="apply_man_name"
						op="cn">
					</td>
			</tr>
			<tr>
				<td class="td1">项目：</td>
				<td class="td2"><form:select path="projects" field="project_id"
							op="cn" data-allow-empty="true" items="${projects}"
							itemLabel="name" itemValue="id" cssClass="search" />
				
					<td class="td1">报废时间：</td>
				<td class="td2" colspan="3"><input id="discardDateStart"
						type="date" field="discard_date" op="gt" style="width: 68px" />~<input
						id="discardDateEnd" type="date" field="discard_date" op="lt"
						style="width: 68px" />
					</td>
			</tr>
		</tbody>
	</table>
	</jsp:attribute>
	<jsp:body>
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="code" title="编号" width="100">
	</isperp:column>
	<isperp:column name="memo" title="描述" width="180">
	</isperp:column>
	<isperp:column name="apply_man_name" title="申请人" width="80">
	</isperp:column>
	<isperp:column name="project_name" title="项目" width="150">
	</isperp:column>
	<isperp:column name="discard_date" title="报废时间" width="100">
	 	</isperp:column>
	</jsp:body>
</isperp:grid>

<isperp:operate code="SPT_DISCARD"></isperp:operate>
